﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% PhuKien phukien = Model.PhuKienModel.GetModel.LstObjModel[0]; %>
    <div id="DivTinTucVTA" style="display: block;">
        <table id="VTA_LoadContent_ctl00_VTA_LoadBody1_TblLoadQuanCao" style="width: 100%;
            border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
            <tbody>
                <tr>
                    <td style="width: 100%;" valign="top">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tbody>
                                <tr>
                                    <td class="maintabletitlebg" align="center" height="42">
                                        <h1>
                                            <%= Model.PhuKienModel.GetModel.LstObjModel[0].SanPham.TenSanPham %></h1>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="graytdborder" style="border-right-width: 0px ! important;" align="center">
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                            <tbody>
                                                <tr>
                                                    <td class="tdcell" align="left" width="100%">
                                                        <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                                            <tbody>
                                                                <tr>
                                                                    <td valign="top" width="33%">
                                                                        <table width="100%" border="0" cellpadding="5" cellspacing="0">
                                                                            <tbody>
                                                                                <tr>
                                                                                    <td align="center">
                                                                                        <p>
                                                                                            <br>
                                                                                            <img src="../../Content/Images/Items/<%= Model.PhuKienModel.GetModel.LstObjModel[0].SanPham.HinhMinhHoa %>"
                                                                                                alt="<%= Model.PhuKienModel.GetModel.LstObjModel[0].SanPham.TenSanPham %>" height="190">
                                                                                        </p>
                                                                                    </td>
                                                                                </tr>
                                                                            </tbody>
                                                                        </table>
                                                                    </td>
                                                                    <td class="bodyChitiet" width="67%" valign="top">
                                                                        <table class="leftBorderTable" cellspacing="0" cellpadding="10" border="0" width="100%">
                                                                            <tbody>
                                                                                <tr>
                                                                                    <td>
                                                                                        <p>
                                                                                            <span class="titleChitiet">
                                                                                                <%= Model.PhuKienModel.GetModel.LstObjModel[0].SanPham.TenSanPham %></span><br />
                                                                                            <br />
                                                                                            Giá: <span class="detail_price"><strong>
                                                                                                <%= string.Format("{0:0,0}", Model.PhuKienModel.GetModel.LstObjModel[0].SanPham.GiaBan) %>
                                                                                                VNĐ</strong></span><br>
                                                                                            <br />
                                                                                            Bảo hành:
                                                                                            <%= Model.PhuKienModel.GetModel.LstObjModel[0].SanPham.BaoHanh %>
                                                                                            <br />
                                                                                            <br />
                                                                                            Xuất xứ:
                                                                                            <%= Model.PhuKienModel.GetModel.LstObjModel[0].XuatXu%>
                                                                                        </p>
                                                                                        <p>
                                                                                        </p>
                                                                                    </td>
                                                                                </tr>
                                                                                <% if (!Request.IsAuthenticated || (Request.IsAuthenticated && Roles.GetRolesForUser(Page.User.Identity.Name)[0].Equals(StringEnum.GetStringValue(LoaiNguoiDung.CUSTOMER))))
                                                                                   { %>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <table width="100%" border="0" cellpadding="2" cellspacing="2">
                                                                                            <tbody>
                                                                                                <tr>
                                                                                                    <td style="text-align: center;" valign="top">
                                                                                                        <a href="<%= Url.Action("AddToCart2", "Home", new { id = Model.PhuKienModel.GetModel.LstObjModel[0].ID })%>">
                                                                                                            <img src="../../Content/Images/Home/datmuaonline.gif" style="border: 0px none;" alt="" /></a>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </tbody>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <% } %>
                                                                            </tbody>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td bgcolor="#dcdcdc" height="1" colspan="2">
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <div class="detail_tab">
                                                                            <div>
                                                                                <a id="detail_tab2" class="down" href="#">Thông tin chi tiết</a>
                                                                            </div>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <div class="detail_tab_content">
                                                                            <div id="detail_2" style="">
                                                                                <table style="font-size: 12px; border: 0px;">
                                                                                    <tbody>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <%= Model.PhuKienModel.GetModel.LstObjModel[0].SanPham.MoTa %>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </tbody>
                                                                                </table>
                                                                            </div>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
